<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">

    <title>My JSP 'List.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
        table {
            border: 1px solid black;
            border-collapse: collapse;
        }

        table thead tr th {
            border: 1px solid black;
            padding: 3px;
            background-color: #cccccc;
        }

        table tbody tr td {
            border: 1px solid black;
            padding: 3px;
        }
    </style>

  </head>

  <body>
    This is my JSP page. <br>
    <form action="sis/userAc!deleteBectchUser.action" method="post">

        <table cellspacing="0">
            <thead>
                <tr>
                 <th></th>
                    <th>登陆账号</th>
                    <th>用户名</th>
                    <th>密码</th>
                    <th>角色</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <s:iterator value="userList" status="st">
                    <tr>
                        <td>
                        <input type="checkbox" name="deleteLoginIdList" value='<s:property value="loginid" />' />
                        <s:property value="#st.count"/>
                        </td>
                        <td><s:property value="loginid" /></td>
                        <td><s:property value="username" /></td>
                        <td><s:property value="loginpassword" /></td>
                        <td><s:property value="roleid" /></td>
                        <td>
                            <a href='<s:url action="sis/userAc!fowardUpdateUser.action"><s:param name="user.loginid" value="loginid" /></s:url>'>
                                编辑
                            </a>
                            &nbsp;
                            <a href='<s:url action="sis/userAc!deleteOneUser.action"><s:param name="user.loginid" value="loginid" /></s:url>'>
                                删除
                            </a>
                        </td>
                    </tr>
                </s:iterator>

                 <tr>
           <td colspan="3">
           <input type="submit" value="批量删除">

           </td>
           <td colspan="3">

           <a href="User/AddOrEditUser.jsp">添加一个用户</a>
           </td>
          </tr>
            </tbody>


        </table>


    </form>
  </body>
</html>
